Skip to content

fix(a11y): add autocomplete=username/current-password to login inputs#219

Merged
ahmetabdullahgultekin merged 1 commit into
mainfrom
fix/login-autocomplete-a11y
Jun 12, 2026
Merged

fix(a11y): add autocomplete=username/current-password to login inputs#219
ahmetabdullahgultekin merged 1 commit into
mainfrom
fix/login-autocomplete-a11y

Conversation

@ahmetabdullahgultekin

Copy link
Copy Markdown
Contributor

What

The login form inputs lacked autocomplete attributes, producing a browser DOM warning and degraded password-manager UX (no credential fill / save prompts).

This adds the correct WHATWG autocomplete tokens to the identifier and password inputs across all sign-in surfaces:

File Field Before After
LoginPage.tsx (app.fivucsas dashboard) email/identifier email username
PasswordStep.tsx (verify.fivucsas hosted flow via LoginMfaFlow) email/identifier (none) username
PasswordStep.tsx password (none) current-password
IdentifierStep.tsx (shared opening identity entry, both surfaces) email/identifier (none) username

Password managers expect username on the identifier field of a sign-in form (not email), paired with current-password on the password field. LoginPage.tsx already had current-password on its password field and a paired hidden username input for the identifier-first step; the gaps were the visible identifier token and the hosted PasswordStep (which had no autocomplete at all — the real source of the DOM warning on verify.fivucsas).

Scope

Strictly the login / identifier / password sign-in path. Register and reset-password flows are intentionally untouched (those use new-password semantics and are out of scope).

Idiom

Uses the autoComplete MUI TextField prop directly, matching the existing idiom already present in LoginPage.tsx.

Verification

  • tsc --noEmit: clean
  • npm run build: passes (full prebuild/fetch-models ran successfully)

The sign-in inputs lacked autocomplete attributes, producing a browser
DOM warning and degraded password-manager behaviour.

- LoginPage email field: autoComplete email -> username (the identifier
  field on a sign-in form should be username for password managers).
- PasswordStep (hosted verify.fivucsas flow via LoginMfaFlow): add
  autoComplete=username to the email field and current-password to the
  password field (both were missing entirely).
- IdentifierStep (shared opening identity entry, both surfaces): add
  autoComplete=username.

Scope is strictly the login/identifier/password sign-in path; register
and reset-password flows are untouched. Typecheck clean; npm run build
passes.
@ahmetabdullahgultekin ahmetabdullahgultekin merged commit 04b5404 into main Jun 12, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant